package cn.ivast.rxjava2test.net;

import cn.ivast.rxjava2test.bean.LoginRequest;
import cn.ivast.rxjava2test.bean.LoginResponse;
import cn.ivast.rxjava2test.bean.RegisterRequest;
import cn.ivast.rxjava2test.bean.RegisterResponse;
import cn.ivast.rxjava2test.bean.UserBaseInfoRequest;
import cn.ivast.rxjava2test.bean.UserBaseInfoResponse;
import cn.ivast.rxjava2test.bean.UserExtraInfoRequest;
import cn.ivast.rxjava2test.bean.UserExtraInfoResponse;
import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.GET;

/**
 *
 * Created by hcs on 2018/10/20.
 */
public interface Api {
    @GET
    Observable<LoginResponse> login(@Body LoginRequest request);

    @GET
    Observable<RegisterResponse> register(@Body RegisterRequest request);

    @GET
    Observable<UserBaseInfoResponse> getUserBaseInfo(@Body UserBaseInfoRequest request);

    @GET
    Observable<UserExtraInfoResponse> getUserExtraInfo(@Body UserExtraInfoRequest request);
}
